<?php

/**
* @current cmsuseraction.php
* @author   Caoqicheng <caoqicheng@haibao.com>
* @date 2017年2月22日 下午17:41:03
*/
namespace haibao\jiepai\model\data\user;

class CmsUserAction extends \haibao\jiepai\model\data\Base{

	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;

    /**
     * 文章点赞
     */
	const TYPE_ARTICLE_PRAISE = 1;
    /**
     * 文章收藏
     */
	const TYPE_ARTICLE_MARK = 2;
    /**
     * 评论点赞
     */
	const TYPE_COMMENT_PRAISE = 3;
    /**
     * 关注达人
     */
	const TYPE_FASHIONSTA_MARK = 4;

    /**
     * 图片点赞
     */
    const TYPE_PICTURE_PRAISE = 5;

    public $TypeID;
 
    public $UserID;
    
    public $CreateTime;
    
    public $Flag;
    
    public $Type;//1->文章点赞，2->文章收藏，3->评论点赞，4->关注达人

    public function __construct(){
        parent::__construct();
        
        $this->intField('TypeID', 'TypeID',true);
        $this->intField('UserID', 'UserID',true);
        $this->dateField('CreateTime', 'CreateTime',true);
        
        $this->intField('Flag', 'Flag',true);
        $this->intField('Type', 'Type',true);

        $this->setTableName('cms_user_action');
    }
}

